//可空拓展类，空值也能打印
fun String?.printWithDefault(default: String) = print(this ?: default)

fun main() {
    val nullableString:String?= null
    nullableString.printWithDefault("abc")
}
